package com.itheima.day02.ZuoYe.ZuoYe_5;

public class Staff extends Peopless {
    private String id;

    @Override
    public String toString() {
        return "Staff{" +"name='" + getName() + '\'' +
                ", sex='" + getSex() + '\'' +
                ", age=" + getAge() +'\'' +
                "，id='" + id + '\'' +
                '}';
    }

    @Override
    public void eat() {
        System.out.println("吃工作餐");
    }

    public Staff() {
    }

    public Staff(String id) {
        this.id = id;
    }

    public Staff(String name, String sex, int age, String id) {
        super(name, sex, age);
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
